A5Storage::DataContainer::EncryptConnectionString Method

Syntax

A5Storage::DataContainer::EncryptConnectionString as A5Storage::CallResult (BYREF EncryptedText as C, ConnectionStringIn as C [, PassphraseIn as C])

Arguments

BYREF EncryptedTextCharacter

The encrypted connection string.

ConnectionStringInCharacter

The connection string to encrypt.

PassphraseInCharacter

 

Returns

ResultA5Storage::CallResult

Information about whether or not the operation succeed. Result.Success with be .T. if the operation succeeds, otherwise .F.

Description

Encrypts a connection string using a passphrase. If no passphrase is provided, a default passphrase is used. Only the assembly that encrypted the connection string using the passphrase can decrypt the connection string.

Example

dim cr as CallResult
dim ConnectionString as C = "Provider='Disk';Container='C:\A5WebRoot';"
dim ResultString  as C
cr = A5Storage::DataContainer::EncryptConnectionString(	ResultString, ConnectionString,
"secret");

? cr.Success
= .T.